package test;

import java.util.Scanner;

public class ZiGuang2 {
    public static void main(String[] args) {
        int[] ch = {1,2,3,5,6,7,9,12,16};
        Scanner sc = new Scanner(System.in);
        int tem = sc.nextInt();
        charu(ch,tem);
    }

    private static void charu(int[] num, int tem) {
        int n = num.length;
        int[] qw = new int[n + 1];
        int i = 0;
        for (;i < n + 1 ; i++) {
            if (i < n && num[i] < tem){
                qw[i] = num[i];
            } else {
                qw[i] = tem;
                i ++;
                break;
            }
        }
        while (i < n + 1) {
            qw[i] = num[i - 1];
            i ++;
        }
        for (int j = 0; j < n; j++) {
            System.out.print(qw[j]);
            System.out.print(",");
        }
        System.out.print(qw[n]);
    }
}
